package com.lufei4.chestnut.view.helper;

import android.util.Log;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * @ProjectName: Chestnut
 * @Package: com.lufei4.chestnut.view.helper
 * @ClassName: MyLifeCycleObserver
 * @Description: java类作用描述
 * @Author: liushijiang 15833013864@163.com
 * @CreateDate: 2021/1/14 16:29
 * @UpdateUser: 更新者：
 * @UpdateDate: 2021/1/14 16:29
 * @UpdateRemark: 更新说明：
 * @Version: 1.0
 */

public class MyLifeCycleObserver implements LifecycleObserver {

    private static final String TAG="MyLifeCycleObserver";

    public MyLifeCycleObserver() {

    }

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    public void onActivityResume(){
        Log.d(TAG,"onActivityResume");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
    public void onActivityPause(){
        Log.d(TAG,"onActivityPause");
    }
}